package com.xbai.goods.pojo;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * @desc 库存回滚表实体类
 * @author jxbai
 * @date 2021/1/27
 */
@Table(name="tb_stock_back")
@Data
public class StockBack implements Serializable{

	/**
	 * 订单id
	 */
    @Column(name = "order_id")
	private String orderId;

	/**
	 * SKU的id
	 */
	@Id
    @Column(name = "sku_id")
	private String skuId;

	/**
	 * 回滚数量
	 */
    @Column(name = "num")
	private Integer num;

	/**
	 * 回滚状态
	 */
	@Column(name = "status")
	private String status;

	/**
	 * 创建时间
	 */
    @Column(name = "create_time")
	private Date createTime;

	/**
	 * 回滚时间
	 */
	@Column(name = "back_time")
	private Date backTime;

}
